home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / kmediaplayer / playerdcopobject.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-09-10  |  2.1 KB  |  63 lines

  1. // Copyright (C) 2002 Neil Stevens <neil@qualityassistant.com>
  2. //
  3. // Permission is hereby granted, free of charge, to any person obtaining a copy
  4. // of this software and associated documentation files (the "Software"), to deal
  5. // in the Software without restriction, including without limitation the rights
  6. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. // copies of the Software, and to permit persons to whom the Software is
  8. // furnished to do so, subject to the following conditions:
  9. // 
  10. // The above copyright notice and this permission notice shall be included in
  11. // all copies or substantial portions of the Software.
  12. // 
  13. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  16. // THE AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  17. // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  18. // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  19. // 
  20. // Except as contained in this notice, the name(s) of the author(s) shall not be
  21. // used in advertising or otherwise to promote the sale, use or other dealings
  22. // in this Software without prior written authorization from the author(s).
  23.  
  24. #ifndef KMEDIAPLAYERPLAYERDCOPOBJECT_H
  25. #define KMEDIAPLAYERPLAYERDCOPOBJECT_H
  26.  
  27. #include <dcopobject.h>
  28. #include <kurl.h>
  29.  
  30. namespace KMediaPlayer
  31. {
  32.  
  33. class KDE_EXPORT PlayerDCOPObject : public DCOPObject
  34. {
  35. K_DCOP
  36.  
  37. public:
  38.     PlayerDCOPObject(void);
  39.  
  40. k_dcop:
  41.     virtual bool openURL(const KURL &file) = 0;
  42.     virtual void pause() = 0;
  43.     virtual void play() = 0;
  44.     virtual void stop() = 0;
  45.  
  46.     virtual void seek(unsigned long msec) = 0;
  47.     virtual bool isSeekable() const = 0;
  48.     virtual unsigned long position() const = 0;
  49.  
  50.     virtual bool hasLength() const = 0;
  51.     virtual unsigned long length() const = 0;
  52.  
  53.     virtual void setLooping(bool) = 0;
  54.     virtual bool isLooping() const = 0;
  55.  
  56.     virtual int state() const = 0;
  57.     virtual void setState(int) = 0;
  58. };
  59.  
  60. }
  61.  
  62. #endif
  63.